# for i in range(3):
#     username = input("请输入用户名")
#     password = input("请输入密码")
#     if username == "seven" and password == "123":
#         print("登录成功")
#         break
#     else:
#         print("登录失败，请重新登录")
# else:
#     print("cnmb,sb")

# name = " aleX is a man "
# for i in range(len(name.split())):
#     print(name.split()[i], end=" ")
#
# print()
#
# print(name.strip())

str = input("请输入一个字符串")
str2 = str.upper()
str3 = str.lower()
f = open("1.txt", "w+")
f.write(str2 + "\n")
f.write(str3 + "\n")
f.close()